package gui.win.parameters;

import core.para.Para;
import gui.VTL1;
import gui.utils.Borders;
import gui.utils.Slider;
import gui.utils.SliderWrap;
import gui.utils.Window;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import javax.swing.JPanel;

/*Author: John Archer, Contact: john.archer.jpa@gmail.com*/
public class Parameters extends Window{
    //private FilePicker lFile;
    public Parameters(VTL1 segL1){
        super(segL1.getLocationOnScreen().x, segL1.getLocationOnScreen().y, new Dimension(450, 144));
        JPanel p0 = new JPanel();
        p0.setBorder(Borders.getTitledBorder(Borders.STANDARD_TITLED_BORDER, "VTBUILDER ADVANCED PARAMETERS"));
        p0.setLayout(new BorderLayout());

        JPanel p1 = new JPanel();
        p1.setEnabled(true);
        p1.setLayout(new GridLayout(1,1));        
        p1.add(new SliderWrap(Slider.SEARCH_DEPTH, 100, 1, Para.SD, "% Data For Ref. Gen.", 260, 3));
        p0.add(p1, BorderLayout.NORTH);
        
        this.add(p0, BorderLayout.CENTER);
        this.add(new Buttons(this), BorderLayout.SOUTH);
        this.setVisible(true);
        this.setAlwaysOnTop(true);
    }

    public void closeFrame(){this.dispose();}
    //public String getPathToLogFile(){return lFile.getPath();}

}
